package com.meng.thrift.client.thrift.util;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;


/**
 * bean 初始化 执行前,后
 *
 * @author MENG
 * @version 2017/11/15
 * @see
 */
//@Component
public class GetThriftServerObjProcessor implements BeanPostProcessor
{
    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName)
        throws BeansException
    {
//        System.out.println(beanName + "-------- 初始化之前设置");

        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName)
        throws BeansException
    {
//        System.out.println(beanName + "-------- 初始化之后设置");

        return bean;
    }
}
